home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Dong / Dong.jar / Dong.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-08-27  |  1.2 KB  |  63 lines

  1. import com.siemens.mp.game.Light;
  2. import javax.microedition.lcdui.Display;
  3. import javax.microedition.lcdui.Displayable;
  4. import javax.microedition.midlet.MIDlet;
  5.  
  6. public class Dong extends MIDlet {
  7.    // $FF: renamed from: if c
  8.    private c field_0 = new c();
  9.    // $FF: renamed from: for b
  10.    private b field_1 = new b();
  11.    // $FF: renamed from: do a
  12.    private a field_2 = new a();
  13.    // $FF: renamed from: a java.lang.Thread
  14.    private Thread field_3;
  15.  
  16.    public void destroyApp(boolean var1) {
  17.       Display.getDisplay(this).setCurrent((Displayable)null);
  18.       this.field_0 = null;
  19.       this.field_1 = null;
  20.       this.field_2 = null;
  21.       this.field_3 = null;
  22.       ((MIDlet)this).notifyDestroyed();
  23.    }
  24.  
  25.    public void pauseApp() {
  26.       ((MIDlet)this).notifyPaused();
  27.    }
  28.  
  29.    public void startApp() {
  30.       System.gc();
  31.       Light.setLightOn();
  32.       Display.getDisplay(this).setCurrent(this.field_0);
  33.       this.field_3 = new Thread(this.field_0);
  34.       this.field_3.start();
  35.  
  36.       while(this.field_3.isAlive()) {
  37.       }
  38.  
  39.       this.field_0.a();
  40.       System.gc();
  41.       Display.getDisplay(this).setCurrent(this.field_1);
  42.       this.field_3 = new Thread(this.field_1);
  43.       this.field_3.start();
  44.  
  45.       while(this.field_3.isAlive()) {
  46.       }
  47.  
  48.       this.field_1.a();
  49.       System.gc();
  50.       Display.getDisplay(this).setCurrent(this.field_2);
  51.       this.field_3 = new Thread(this.field_2);
  52.       this.field_3.start();
  53.  
  54.       while(this.field_3.isAlive()) {
  55.       }
  56.  
  57.       this.field_2.a();
  58.       System.gc();
  59.       Light.setLightOff();
  60.       this.destroyApp(true);
  61.    }
  62. }
  63.